"""
跑腿代办URL配置
"""

from django.urls import path
from . import views

urlpatterns = [
    # 跑腿员相关路由
    path('runners/', views.ErrandRunnerListView.as_view(), name='errand-runner-list'),
    path('runners/<int:pk>/', views.ErrandRunnerDetailView.as_view(), name='errand-runner-detail'),

    # 订单相关路由
    path('orders/', views.ErrandOrderListView.as_view(), name='errand-order-list'),
    path('orders/<int:pk>/', views.ErrandOrderDetailView.as_view(), name='errand-order-detail'),
    path('orders/create/', views.ErrandOrderCreateView.as_view(), name='errand-order-create'),
    path('orders/<int:pk>/accept/', views.ErrandOrderAcceptView.as_view(), name='errand-order-accept'),
    path('orders/<int:pk>/cancel/', views.ErrandOrderCancelView.as_view(), name='errand-order-cancel'),
    path('orders/<int:pk>/complete/', views.ErrandOrderCompleteView.as_view(), name='errand-order-complete'),
]